﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminSignUpStudent.aspx.cs" Inherits="TeamNitro.AdminSignUpStudent" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentHolder" runat="server">
    <style type="text/css">
        .style1
        {
            height: 20px;
        }
        .style2
        {
            height: 20px;
            width: 365px;
        }
        .style3
        {
            height: 20px;
            width: 165px;
        }
        .style4
        {
            height: 36px;
            width: 165px;
        }
        .style5
        {
            height: 36px;
            width: 365px;
        }
        .style6
        {
            height: 36px;
        }
        .style7
        {
            height: 29px;
            width: 165px;
        }
        .style8
        {
            height: 29px;
            width: 365px;
        }
        .style9
        {
            height: 29px;
        }
        .style10
        {
            height: 30px;
            width: 165px;
        }
        .style11
        {
            height: 30px;
            width: 365px;
        }
        .style12
        {
            height: 30px;
        }
        .style13
        {
            height: 33px;
            width: 165px;
        }
        .style14
        {
            height: 33px;
            width: 365px;
        }
        .style15
        {
            height: 33px;
        }
        .style16
        {
            height: 49px;
            width: 165px;
        }
        .style17
        {
            height: 49px;
            width: 365px;
        }
        .style18
        {
            height: 49px;
        }
        .style20
        {
            width: 365px;
        }
        .style22
        {
            height: 47px;
            width: 165px;
        }
        .style23
        {
            height: 47px;
            width: 365px;
        }
        .style24
        {
            height: 47px;
        }
        .style25
        {
            height: 25px;
            width: 165px;
        }
        .style26
        {
            height: 25px;
            width: 365px;
        }
        .style27
        {
            height: 25px;
        }
        .style28
        {
            width: 40px;
        }
        .style29
        {
            height: 20px;
            width: 40px;
        }
        .style30
        {
            height: 25px;
            width: 40px;
        }
        .style32
        {
            height: 30px;
            width: 40px;
        }
        .style33
        {
            height: 47px;
            width: 40px;
        }
        .style34
        {
            height: 33px;
            width: 40px;
        }
        .style35
        {
            height: 49px;
            width: 40px;
        }
        .style36
        {
            height: 36px;
            width: 40px;
        }
        .style37
        {
            height: 29px;
            width: 40px;
        }
        .style38
        {
            width: 165px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="server">
    <table style="width:100%;">
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td colspan="3">
                <h2>
                    <asp:Label ID="Label1" runat="server" Text="Create Student Account"></asp:Label>
                </h2>
            </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td colspan="3">
                <asp:Label ID="lblResult" runat="server" ForeColor="#00CC00" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style1" colspan="3">
                *Required Field</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style25">
                Student ID*<br />
            </td>
            <td class="style26">
                <asp:TextBox runat="server" 
                        Width="300px" ID="tbxStuID"></asp:TextBox>

                    <br />
                    <asp:RegularExpressionValidator ID="revStuID" runat="server" 
                        ControlToValidate="tbxStuID" 
                        
                    ErrorMessage="Starts with &quot;7&quot; Digits and Ends with &quot;1&quot; Alphabetic" ForeColor="#FF3300" 
                        ValidationExpression="[0-9]{7}[A-Za-z]$" Width="295px"></asp:RegularExpressionValidator>
            </td>
            <td class="style27">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuID" ErrorMessage="Required ID" Display="Dynamic" 
            ID="rfvStuID"></asp:RequiredFieldValidator>
                    </td>
        </tr>
        <tr>
            <td class="style28">
                </td>
            <td class="style38">
                Name*</td>
            <td class="style20">
                <asp:TextBox runat="server" 
                        Width="300px" ID="tbxStuName"></asp:TextBox>

                    </td>
            <td>
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuName" ErrorMessage="Required Name" Display="Dynamic" 
            ID="rfvStuName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style32">
                &nbsp;</td>
            <td class="style10">
                Password*</td>
            <td class="style11">
                <asp:TextBox runat="server" 
                        TextMode="Password" Width="300px" 
            ID="tbxStuPassword"></asp:TextBox>

                    </td>
            <td class="style12">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuPassword" ErrorMessage="Required Password" 
            Display="Dynamic" ID="rfvStuPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td class="style22">
                Re-enter Password*<br />
            </td>
            <td class="style23">
                <asp:TextBox runat="server" 
                        TextMode="Password" Width="300px" 
            ID="tbxStuRePassword"></asp:TextBox>

                    <br />
                    <asp:CompareValidator runat="server" 
            ControlToCompare="tbxStuPassword" ForeColor="#FF3300" 
            ControlToValidate="tbxStuRePassword" ErrorMessage="Password not match" 
            Display="Dynamic" ID="cvStuPassword"></asp:CompareValidator>
            </td>
            <td class="style24">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuRePassword" ErrorMessage="Required Re-enter Password" 
            Display="Dynamic" ID="rfvStuRePassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style3">
                Contact Number*<br />
            </td>
            <td class="style2">
                <asp:TextBox runat="server" 
                        Width="300px" ID="tbxStuContact"></asp:TextBox>

                    <br />
                    <asp:RegularExpressionValidator ID="revStuContact" runat="server" 
                        ControlToValidate="tbxStuContact" ErrorMessage="Please Only Enter &quot;8&quot; Digits " 
                        ForeColor="#FF3300" ValidationExpression="[0-9]{8}"></asp:RegularExpressionValidator>
            </td>
            <td class="style1">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuContact" ErrorMessage="Required Contact Number" 
            Display="Dynamic" ID="rfvStuContact"></asp:RequiredFieldValidator>
                    </td>
        </tr>
        <tr>
            <td class="style34">
                &nbsp;</td>
            <td class="style13">
                Address*<br />
                <br />
                <br />
            </td>
            <td class="style14">
                <asp:TextBox runat="server" 
                        TextMode="MultiLine" Height="82px" 
            Width="300px" ID="tbxStuAddress"></asp:TextBox>

                    </td>
            <td class="style15">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuAddress" ErrorMessage="Required Address" 
            Display="Dynamic" ID="rfvStuAddress"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style35">
                &nbsp;</td>
            <td class="style16">
                Email*<br />
                <br />
            </td>
            <td class="style17">
                <br />
                <asp:TextBox 
                        runat="server" Width="150px" ID="tbxStuEmail"></asp:TextBox>

                    &nbsp;<asp:Label ID="lblEmailDomain" runat="server" 
                    Text="@student.tp.edu.sg"></asp:Label>

                    <br />
                    <asp:RegularExpressionValidator ID="rexAdminEmail" runat="server" 
                        ControlToValidate="tbxStuEmail" ErrorMessage="RegularExpressionValidator" 
                        ForeColor="#FF3300" 
                    ValidationExpression="[0-9]{7}[A-Za-z]$" Width="365px">Enter Valid Email Address (e.g. 1234567A@student.tp.edu.sg)</asp:RegularExpressionValidator>
            </td>
            <td class="style18">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuEmail" ErrorMessage="Required Email" Display="Dynamic" 
            ID="rfvStuEmail"></asp:RequiredFieldValidator>
                    </td>
        </tr>
        <tr>
            <td class="style36">
                &nbsp;</td>
            <td class="style4">
                Current Year*<br />
                <br />
                <br />
            </td>
            <td class="style5">
                <br />
        <asp:RadioButtonList runat="server" ID="rblStuYear" Width="88px" Height="47px">
            <asp:ListItem>Freshmen</asp:ListItem>
            <asp:ListItem>Junior</asp:ListItem>
            <asp:ListItem>Senior</asp:ListItem>
        </asp:RadioButtonList>
                <br />
        <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="rblStuYear" ErrorMessage="Required Current Year" 
            Display="Dynamic" ID="rfvStuCurrentYear"></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style3">
                Current Semester*<br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </td>
            <td class="style2">
                <br />
                <asp:RadioButtonList 
            runat="server" ID="rblStuSem">
            <asp:ListItem>1.1</asp:ListItem>
            <asp:ListItem>1.2</asp:ListItem>
            <asp:ListItem>2.1</asp:ListItem>
            <asp:ListItem>2.2</asp:ListItem>
            <asp:ListItem>3.1</asp:ListItem>
            <asp:ListItem>3.2</asp:ListItem>
            <asp:ListItem>4.1</asp:ListItem>
            <asp:ListItem>4.2</asp:ListItem>
            <asp:ListItem>5.1</asp:ListItem>
            <asp:ListItem>5.2</asp:ListItem>
        </asp:RadioButtonList>
                <br />
        <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="rblStuSem" ErrorMessage="Required Current Semester" 
            Display="Dynamic" ID="rfvStuCurrentSem"></asp:RequiredFieldValidator>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style3">
                School*<br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </td>
            <td class="style2">
                <br />
                <asp:RadioButtonList runat="server" 
            ID="rblStuSchool">
            <asp:ListItem>School of Informatics and IT</asp:ListItem>
            <asp:ListItem>School of Applied Science</asp:ListItem>
            <asp:ListItem>School of Business</asp:ListItem>
            <asp:ListItem>School of Design</asp:ListItem>
            <asp:ListItem>School of Engineering</asp:ListItem>
            <asp:ListItem>School of Humanities and Social Sciences</asp:ListItem>
        </asp:RadioButtonList>
                <br />
        <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="rblStuSchool" ErrorMessage="Required School" 
            Display="Dynamic" ID="rfvStuSchool"></asp:RequiredFieldValidator>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style37">
                &nbsp;</td>
            <td class="style7">
                Course Name*</td>
            <td class="style8">
                    <asp:TextBox runat="server" Height="20px" Width="300px" 
            ID="tbxStuCourseName"></asp:TextBox>

                    </td>
            <td class="style9">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuCourseName" ErrorMessage="Required Course Name" 
            Display="Dynamic" ID="rfvStuCourseName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style32">
                &nbsp;</td>
            <td class="style10">
                Course Code*</td>
            <td class="style11">
                <asp:TextBox runat="server" 
                        Width="300px" ID="tbxStuCourseCode"></asp:TextBox>

                    </td>
            <td class="style12">
                    <asp:RequiredFieldValidator runat="server" ForeColor="#FF3300" 
            ControlToValidate="tbxStuCourseCode" ErrorMessage="Required Course Code" 
            Display="Dynamic" ID="rfvStuCourseCode"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style3">
                <br />
        <asp:Button runat="server" Text="Create" Height="26px" Width="90px" 
            ID="btnStuCreate" OnClick="btnStuCreate_Click"></asp:Button>
            </td>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
